﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PatternFactoryAbs
{
   
    public class F1MobiProduct : IMobaiProduct
    {
        public void Drive()
        {
            string str = nameof(F1MobiProduct) + "Drive";
            Console.WriteLine(str);
        }

        public void GetName()
        {
            string str = nameof(F1MobiProduct) ;
            Console.WriteLine(str);
        }
    }

    public class F1TeslaProduct : ITeslaProduct
    {
        public void Drive()
        {
            string str = nameof(F1TeslaProduct) + "Drive";
            Console.WriteLine(str); ;
        }

        public void GetName()
        {
            string str = nameof(F1TeslaProduct);
            Console.WriteLine(str);
        }
    }
     
    public class F2MobiProduct : IMobaiProduct
    {
        public void Drive()
        {
            string str = nameof(F2MobiProduct) + "Drive";
            Console.WriteLine(str);
        }

        public void GetName()
        {
            string str = nameof(F2MobiProduct);
            Console.WriteLine(str);
        }
    }

    public class F2TeslaProduct : ITeslaProduct
    {
        public void Drive()
        {
            string str = nameof(F2TeslaProduct) + "Drive";
            Console.WriteLine(str); ;
        }

        public void GetName()
        {
            string str = nameof(F2TeslaProduct);
            Console.WriteLine(str);
        }
    }

}
